import request from "@/utils/request.js";
export function create(data) {
	return request.post("/hash/create", data);
}
export function manage(data) {
	return request.post("/hash/manage", data);
}
export function search(data) {
	return request.post("/hash/search", data);
}
export function getHash(id) {
	return request.post("/hash/get", {id});
}
export function getHashByCode(hash) {
	return request.post("/hash/get", {hash});
}
export function share(data) {
	return request.post("/hash/share", data);
}



export function getOfficialHash(data) {
	return request.post("/hashs/official", data);
}
export function lock(data) {
	return request.post("/hashs/lock", data);
}
export function reset(data) {
	return request.post("/hashs/reset", data);
}
export function repick(data) {
	return request.post("/hashs/repick", data);
}
export function getStaff(id,server,thread,times) {
	return request.post("hashs/getStaff", {id,server,thread,times});
}
export function ai(data) {
	return request.post("/hashs/ai", data);
}
export function getStaffName(id,server,reload,thread,times) {
	return request.post("/hashs/getStaffName", {id,server,reload,thread,times});
}
export function getDesc(id,server) {
	return request.post("/hashs/getDesc", {id});
}
export function getTiaopeiByHash(code) {
	return request.post("hashs/getTiaopeiHash", {code});
}
export function getTiaopei(id) {
	return request.post("hash/get", {id});
}
export function save(data) {
	return request.post("hash/create", data);
 
}
export function modifyName(data) {
	return request.post("/hashs/modifyName", data);
}